from django.db import models

# Create your models here.
class Area(models.Model):
    name=models.CharField(max_length=64, verbose_name='area_name')
    parent=models.ForeignKey('self',on_delete=models.SET_NULL,
                             null=True,blank=True,
                             related_name='subs',verbose_name='parent_id')

    class Meta:
        db_table='tb_areas'

    def __str__(self):
        return self.name
